package com.example.layui_project.controller;

import com.example.layui_project.comm.action.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("console")
public class ConsoleController extends BaseController {
    @GetMapping("toConsole.do")
    public String toConsole(){
        boolean permission = super.checkPermission();
        if (!permission){
            // 说明权限校验未通过返回
            return "error";
        }
        return "console/console";
    }
}
